package com.xiaoyu.shenyou.shenyouv1.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
public class AutoLogEntity {

    private int id;

    private int user_id;

    private int games;

    private String prediction;

    private String kill_room;

    private String result;

    private double betting;

    private double income;

    private double balance;

    private double profitAndLose;

    private int continue_fail;

    private int continue_fail_skip;

    private int multiple_reset;

    private int win_count;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    private LocalDateTime create_time;

}
